<template>
    <div id="app">
        <Header></Header>
        <transition name="fade" mode="out-in">
            <router-view></router-view>
        </transition>
        <PlayBar></PlayBar>
    </div>
</template>

<script>
import { mapActions } from 'vuex'
import Header from 'Views/common/header'
import PlayBar from 'Views/common/play-bar'



export default {
    created() {
        this.init()
        this.bindEvent()
    },

    components: {
        PlayBar,
        Header
    },

    methods: {
        ...mapActions(['getUserInfo']),
        bindEvent() {
            GLOBAL.vbus.$on('business.response.incorrect', (resData) => {
                // ... code 不为 0，业务不正确处理
            })
            // 自行触发
            GLOBAL.vbus.$on('ajax.request.error', (resData) => {
            })
            GLOBAL.vbus.$on('ajax.response.error', (resData) => {
            })
        },
        init() {
            
        }
    }
}
</script>
<style>
    @import './assets/style/base/_export.scss'
</style>

